<?php

class Datacheck {

	public function Email($email) {
		$regexp="/^[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}$/i";
		if (!preg_match($regexp, $email)) return false;
		else return true;
	}

	public function GotSpecialChars($text) {
		return !preg_match('/[^A-Za-z0-9]/', $_POST['username']);
	}

}

?>
